package com.itheima.Demo01.demo05;

import java.util.concurrent.CountDownLatch;

public class Test05 {
    public static void main(String[] args) {
        CountDownLatch C = new CountDownLatch(3);
        MotheThred M = new MotheThred(C);
        M.start();

        Thred01 T1 =new Thred01(C);
        T1.setName("小米");
        Thred02 T2 =new Thred02(C);
        T2.setName("小雷");
        Thred03 T3 =new Thred03(C);
        T3.setName("小果");

        T1.start();
        T2.start();
        T3.start();
    }
}
